<?php


namespace app\index\controller;


use think\Controller;
use think\facade\Request;

class RequestTest2 extends Controller
{

    public function index()
    {
        dump($this->request);
        return $this->request->param("name");
    }

    public function index2()
    {
        return Request::param("name");
    }

    public function index3()
    {
        return request()->param("name");
    }

    public function index_url()
    {
        return request()->url(true);
    }

    public function index_root()
    {
        return request()->root(true);
    }

    public function index_base_file()
    {
        return request()->baseFile(true);
    }

}